package com.jinhu.generator;

import com.jinhu.generator.code.CodeGenerate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class GeneratorApplication{


    public static void main(String[] args) {
        ConfigurableApplicationContext context =SpringApplication.run(GeneratorApplication.class, args);

        CodeGenerate codeGenerate = context.getBean(CodeGenerate.class);
        codeGenerate.generateToFile();
        System.out.println();
    }

}
